package com.hua.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品价格表
 * @TableName price
 */
@TableName(value ="price")
@Data
@ToString
public class Price implements Serializable {
    /**
     * 价格表的id 也是价格表的主键
     */
    @TableId(type = IdType.AUTO)
    private Integer priceId;

    /**
     * 商品规格id
     */
    private Integer scaleId;

    /**
     * 商品id  对应commodity_infod的主键
     */
    private Integer commodityId;

    /**
     * 商品的价格
     */
    private BigDecimal price;

    /**
     * 茶底id
+
     */
    private Integer teaId;

    /**
     * 配料表id
     */
    private Integer ingredientId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
